import request from '@/utils/request'

// 查询流程定义设置列表
export function listBpmTaskAssignee(query) {
  return request({
    url: '/flowable/bpmTaskAssignee/list',
    method: 'get',
    params: query
  })
}

// 查询流程定义设置详细
export function getBpmTaskAssignee(id) {
  return request({
    url: '/flowable/bpmTaskAssignee/' + id,
    method: 'get'
  })
}

// 新增流程定义设置
export function addBpmTaskAssignee(data) {
  return request({
    url: '/flowable/bpmTaskAssignee',
    method: 'post',
    data: data
  })
}

// 修改流程定义设置
export function updateBpmTaskAssignee(data) {
  return request({
    url: '/flowable/bpmTaskAssignee',
    method: 'put',
    data: data
  })
}

// 删除流程定义设置
export function delBpmTaskAssignee(id) {
  return request({
    url: '/flowable/bpmTaskAssignee/' + id,
    method: 'delete'
  })
}

export function queryByNodeIdAndNodeKey(query) {
  return request({
    url: '/flowable/bpmTaskAssignee/queryByNodeIdAndNodeKey',
    method: 'get',
    params: query
  })
}
